describe('practice-2-4', function () {

    it("三色球问题", function () {
        var result_kinds = tri_color_ball_kinds();
        console.info('result_kinds:'+result_kinds);
        expect(result_kinds.length).toBe(13);
        for(var i = 0;i < result_kinds.length; i ++)
        {
            var kind = result_kinds[i];
            if(kind.red === 0)
            {
                expect(kind.white+kind.black === 8).toBe(true);
            }
            else if(kind.red===1)
            {
                expect(kind.white+kind.black===7).toBe(true);
            }
            else if(kind.red===2)
            {
                expect(kind.white+kind.black===6).toBe(true);
            }
            else if(kind.red===3)
            {
                expect(kind.white+kind.black===5).toBe(true);
            }
        }
    });

});